const path = require('path')
const webpack = require('webpack')

module.exports = {
  entry: {
    vendor: [
      'vue',
      'vue-router',
	    '@antv/data-set',
      'axios',
      'vuex',
	    'store',
      'ant-design-vue',
      'core-js',
      'enquire.js',
      'md5',
      'mockjs2',
      'moment',
      'nprogress',
      'viser-vue',
      'vue-clipboard2',
      'vue-cropper',
      'vue-quill-editor',
      'vue-svg-component-runtime',
      'wangeditor',
    ]
  },
  output: {
    path: path.join(__dirname, './public/vendor'),
    filename: '[name].dll.js',
    library: '[name]_library'
  },
  plugins: [
    new webpack.DllPlugin({
      path: path.join(__dirname, './public/vendor', '[name]-manifest.json'),
      name: '[name]_library'
    })
  ]
}
